package com.warm.base.design.s_proxy;

/**
 * @Date: 2019/11/22 10:45
 * @Author: LChuang
 * @Description: 代理类
 */
public class StaticProxy implements Subject{
    private Subject subject;

    /**
     * 将被代理对象传进来
     */
    public StaticProxy(final Subject subject){
        this.subject = subject;
    }


    @Override
    public void operator() {
        System.out.println("static proxy");
        this.subject.operator();
    }
}
